//
//  SLHomeDefaultView.m
//  SlockApp
//
//  Created by 凯朱 on 2024/11/5.
//

#import "SLHomeDefaultView.h"

@implementation SLHomeDefaultView
-(void)awakeFromNib{
    [super awakeFromNib];
    _tipLbl1.text = kLocalString(@"Welcome to \nHEXFORCE!");
    _tipLbl2.text = kLocalString(@"Tap button to pair your first device.");
    [_addBtn setTitle:kLocalString(@"Add new device") forState:UIControlStateNormal];
    _addBtn.btnStyle = 1;
    _circleImageView.userInteractionEnabled = true;
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
    [_circleImageView addGestureRecognizer:tap];
}


- (IBAction)addAction:(id)sender {
    if (self.btnBlock) {
        self.btnBlock(1);
    }
}

- (void)tapAction:(UITapGestureRecognizer *)tap {
    if (self.btnBlock) {
        self.btnBlock(1);
    }
}

@end
